#@admin_header()
<!-- 内容主体区域 -->
<div class="layui-body">
  <div style="padding: 15px;">
    <div class="layui-row">
      <button title="新增" onclick="window.open('#(adminRoot)/content/article/add', '_blank');"
              class="layui-btn layui-btn-normal">
        <i class="layui-icon">&#xe654;</i>新增
      </button>
    </div>
    <div class="layui-row">
      <div class="layui-col-md12">
        <fieldset class="layui-elem-field layui-field-title">
          <legend>文章管理</legend>
        </fieldset>
        <table class="layui-table">
          <thead>
          <tr>
            <th width="150">标题</th>
            <th>摘要</th>
            <th width="40">置顶</th>
            <th width="130">最后更新时间</th>
            <th width="160">操作</th>
          </tr>
          </thead>
          <tbody>
          #for(x : page.getList())
          <tr id="(x.id)">
            <td>#(x.title)</td>
            <td>#(x.summary)</td>
            <td>#(x.is_top == com.ywyself.model.Article::IS_TOP_ON ? "是" : "否")</td>
            <td>#date(x.update_time??)</td>
            <td>
              <button title="编辑" onclick="edit($(this).parents('tr'))"
                      class="layui-btn layui-btn-small layui-btn-normal">
                <i class="layui-icon">&#xe642;</i></button>
              <button title="删除" onclick="del($(this).parents('tr'))"
                      class="layui-btn layui-btn-small layui-btn-danger">
                <i class="layui-icon">&#xe640;</i></button>
              <button title="查看" class="layui-btn layui-btn-small">
                <i class="layui-icon">&#xe602;</i></button>
            </td>
          </tr>
          #end
          </tbody>
        </table>
        #@_page(page, adminRoot+ '/content/article', '')
      </div>
    </div>
  </div>
</div>
#@admin_footer()
